package sample9;

public class Student extends AbstractPerson implements Propeties{

	// フィールド
	String school;

	// コンストラクタ
	public Student(int age, String name, String school) {
		super(age, name);
		this.school = school;
	}

	@Override
	public void toPropeties() {
		System.out.println("class=" + this.getClass().getSimpleName());
		System.out.println("age=" + age);
		System.out.println("name=" + name);
		System.out.println("school=" + school);

	}
	
}
